package stripsPlanner;

import stripsLanguage.Plan;

public class DataStorage {

	private Plan Plan;
	private StoredChoosing StoredChoosing;
	private Subgoal Subgoal;
	private Subgoal nextSubgoal;
	private int IdOfDataStorage;
	private int IdOfPreviousDataStorage;  // pomaga w znalezieniu poprzedniego planu - niekoniecznie to plan o jeden wczesniejszy
	// na liscie planow
	private boolean WasHere = false;
	
	public DataStorage(
	    Plan plan,
	    StoredChoosing storedChoosing,
	    Subgoal subgoal,
	    int idOfDataStorage,
	    int idOfPreviousDataStorage)
	{	    
	   	Plan = plan;
	   	StoredChoosing = storedChoosing;
	   	Subgoal = subgoal;
	   	IdOfPreviousDataStorage = idOfPreviousDataStorage;
	   	IdOfDataStorage = idOfDataStorage; 
	}

	public int getIdOfDataStorage()
	{ return IdOfDataStorage; }
	
	public int getIdOfPreviousDataStorage()
	{ return IdOfPreviousDataStorage; }
	
	public Plan getPlan()
	{ return Plan; }
	    
	public StoredChoosing getStoredChoosing()
	{
	  	return StoredChoosing;
	}
	 
	public Subgoal getSubgoal()
	{ return Subgoal; }

	public void setWasHere() {
		WasHere = true;
	}

	public boolean isWasHere() {
		return WasHere;
	}

	public void setNextSubgoal(Subgoal nextSubgoal) {
		this.nextSubgoal = nextSubgoal;
	}

	public Subgoal getNextSubgoal() {
		return nextSubgoal;
	}
	    
}
